/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.fii.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Zeus
 */
@Entity
@Table(name = "pg_docente", catalog = "prog_acad", schema = "")
@NamedQueries({
    @NamedQuery(name = "PgDocente.findAll", query = "SELECT p FROM PgDocente p"),
    @NamedQuery(name = "PgDocente.findByPgcodDocente", query = "SELECT p FROM PgDocente p WHERE p.pgcodDocente = :pgcodDocente"),
    @NamedQuery(name = "PgDocente.findByPgApPaterno", query = "SELECT p FROM PgDocente p WHERE p.pgApPaterno = :pgApPaterno"),
    @NamedQuery(name = "PgDocente.findByPgApMaterno", query = "SELECT p FROM PgDocente p WHERE p.pgApMaterno = :pgApMaterno"),
    @NamedQuery(name = "PgDocente.findByPgNombre", query = "SELECT p FROM PgDocente p WHERE p.pgNombre = :pgNombre"),
    @NamedQuery(name = "PgDocente.findByPgDomicilio", query = "SELECT p FROM PgDocente p WHERE p.pgDomicilio = :pgDomicilio"),
    @NamedQuery(name = "PgDocente.findByPgSexo", query = "SELECT p FROM PgDocente p WHERE p.pgSexo = :pgSexo"),
    @NamedQuery(name = "PgDocente.findByPgEstado", query = "SELECT p FROM PgDocente p WHERE p.pgEstado = :pgEstado")})
public class PgDocente implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "pg_codDocente", nullable = false, length = 5)
    private String pgcodDocente;
    @Basic(optional = false)
    @Column(name = "pg_Ap_Paterno", nullable = false, length = 40)
    private String pgApPaterno;
    @Basic(optional = false)
    @Column(name = "pg_Ap_Materno", nullable = false, length = 40)
    private String pgApMaterno;
    @Basic(optional = false)
    @Column(name = "pg_Nombre", nullable = false, length = 40)
    private String pgNombre;
    @Basic(optional = false)
    @Column(name = "pg_Domicilio", nullable = false, length = 50)
    private String pgDomicilio;
    @Basic(optional = false)
    @Column(name = "pg_sexo", nullable = false)
    private char pgSexo;
    @Column(name = "pg_estado")
    private Character pgEstado;

    public PgDocente() {
    }

    public PgDocente(String pgcodDocente) {
        this.pgcodDocente = pgcodDocente;
    }

    public PgDocente(String pgcodDocente, String pgApPaterno, String pgApMaterno, String pgNombre, String pgDomicilio, char pgSexo) {
        this.pgcodDocente = pgcodDocente;
        this.pgApPaterno = pgApPaterno;
        this.pgApMaterno = pgApMaterno;
        this.pgNombre = pgNombre;
        this.pgDomicilio = pgDomicilio;
        this.pgSexo = pgSexo;
    }

    public String getPgcodDocente() {
        return pgcodDocente;
    }

    public void setPgcodDocente(String pgcodDocente) {
        this.pgcodDocente = pgcodDocente;
    }

    public String getPgApPaterno() {
        return pgApPaterno;
    }

    public void setPgApPaterno(String pgApPaterno) {
        this.pgApPaterno = pgApPaterno;
    }

    public String getPgApMaterno() {
        return pgApMaterno;
    }

    public void setPgApMaterno(String pgApMaterno) {
        this.pgApMaterno = pgApMaterno;
    }

    public String getPgNombre() {
        return pgNombre;
    }

    public void setPgNombre(String pgNombre) {
        this.pgNombre = pgNombre;
    }

    public String getPgDomicilio() {
        return pgDomicilio;
    }

    public void setPgDomicilio(String pgDomicilio) {
        this.pgDomicilio = pgDomicilio;
    }

    public char getPgSexo() {
        return pgSexo;
    }

    public void setPgSexo(char pgSexo) {
        this.pgSexo = pgSexo;
    }

    public Character getPgEstado() {
        return pgEstado;
    }

    public void setPgEstado(Character pgEstado) {
        this.pgEstado = pgEstado;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pgcodDocente != null ? pgcodDocente.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PgDocente)) {
            return false;
        }
        PgDocente other = (PgDocente) object;
        if ((this.pgcodDocente == null && other.pgcodDocente != null) || (this.pgcodDocente != null && !this.pgcodDocente.equals(other.pgcodDocente))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.fii.entity.PgDocente[ pgcodDocente=" + pgcodDocente + " ]";
    }
    
}
